package com.escape.oss.controller;

import com.escape.oss.service.FileService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: escape_zebra
 * @CreateTime: 2025-01-02  17:26
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
public class FileController {

    @Resource
    private FileService fileService;

    @RequestMapping("/test")
    public String test() throws Exception {
        List<String> allBucket = fileService.getAllBucket();
        return allBucket.get(0);
    }

    // localhost:4000/test


}
